﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            double i = 0;
           double [] arr = { 65, 78, 89, 70, 95 };
            foreach (var item in arr)
            {
                i = item + i;
            }
            Console.WriteLine("成绩总和为："+i);
            Console.WriteLine("平均分为："+i/arr.Length);

        }
    }
}
